from django.core.mail import send_mail

from celery_tasks.main import app


@app.task
def send_verify_mail(subject, html_message, recipient_list):
    recipient_list = recipient_list
    from_email = "zqy1248849985@126.com"

    try:
        send_mail(subject, '', from_email, recipient_list, html_message=html_message)
    except Exception as e:
        print("发送失败", e)
